
<h3 class="page-header">订单记录
<!-- <a href="" class="ajax-modal-sm">+</a> -->
</h3>

<div class="table-responsive">
<table class="table table-hover table-bordered">
<thead>
<tr>
	<th>用户</th>
	<th>订单号</th>
	<th width="200">项目名称</th>
	<th>价钱</th>
	<th>支付方式</th>
	<th>订单生成时间</th>
	<th width="150">订单状态</th>
</tr>
</thead>
<tbody id="cat-list">
<?php foreach ($order as $item):?>
<tr>
	<td><?= $item['nick_name'] ?></td>
	<td><?= $item['order_num'] ?></td>
	<td><?= $item['project_name'] ?></td>
	<td>
	<?php if (!empty($item['price']['planner'])):?> 
	策划:<?= $item['price']['planner']; ?>
	<?php else:?>
		<?php if (!empty($item['price']['person_price'])):?> 
		共<?= $item['price']['person_price']+$item['price']['device_price']+$item['price']['place_price']; ?>
    	人才:<?= $item['price']['person_price']; ?>
    	设备:<?= $item['price']['device_price']; ?>
    	场地:<?= $item['price']['place_price']; ?>
    	<?php endif;?>
	<?php endif;?>
	
	</td>
	<td><?= $item['pay_type'] ?></td>
	<td><?= $item['c_time'] ?></td>
	<td>
	<?php if ($item['status']==1):?>
	已付款
	<?php else:?>
	待付款
	<?php endif;?>
	</td>
</tr>
<?php endforeach;?>
</tbody>
</table>
<?=  $pager;?>
</div>

